/* 导出页面需要的信息 */
export const Page = {
  /* 表格展示部分 */
  tableHeader: [
    {
      title: "库存SKU",
      value: "sku",
      width: "150px",
      IsUpdata: true,
    },
    {
      title: "商品名称",
      value: "sku_name",
      width: "220px",
    },
    {
      title: "供应商名称",
      value: "supplier_name",
      width: "220px",
    },
    {
      title: "仓库类型",
      value: "warehouse_name",
      width: "130px",
    },
    {
      title: "当前库存",
      value: "quality_stock",
      width: "140px",
    },
    {
      title: "库存总价",
      value: "quality_stock_price",
      width: "120px",
    },
    {
      title: "库存单价",
      value: "quality_stock_unit_price",
      width: "120px",
    },
    {
      title: "换货订单号",
      value: "exchange_order_id",
      width: "150px",
    },
    {
      title: "换货订单数量",
      value: "stock_exchange_order_sku_num",
      width: "140px",
    },
    {
      title: "换货发货数量",
      value: "exchange_order_num",
      width: "150px",
    },
  ],
  /* 弹窗表单 */
  Dialog: {
    /* 修改换货出库弹窗 */
    UpdataDialog: {
      DialogTtile: "修改换货出库", // 弹窗标题
      DialogConfirmText: "确认修改", // 弹窗确认按钮文字
      DialogForm: {
        stock_in_id: "",
        exchange_order_id:'',
        exchange_order_num:'',
      },
      rules: {
        stock_in_id: [
          { required: true, message: "请选择订单号", trigger: "blur" },
        ],
        exchange_order_id: [
          { required: true, message: "请选择换货订单号", trigger: "blur" },
        ],
        exchange_order_num: [{ required: true, message: "请选择换货数量", trigger: "blur" }],
      },
      DialogFormType: [
        {
          name: "请选择库存商品",
          value: "stock_in_id",
          type: "No",
          GetApi: "GetStockUpInList",
          placeholder: "请选择库存商品",
          Search: true,
          ShowValue: "换货出库选择库存商品",
          tableHeader: [
            {
              title: "入库记录时间",
              value: "stock_in_time",
              width: "150px",
              IsUpdata: true,
            },
            {
              title: "仓库类型",
              value: "warehouse_name",
              width: "120px",
            },
            {
              title: "SKU",
              value: "sku",
              width: "120px",
            },
            {
              title: "商品名称",
              value: "sku_name",
              width: "130px",
            },
            {
              title: "备货入库单价",
              value: "stock_in_unit_price",
              width: "140px",
            },
            {
              title: "备货入库数量",
              value: "stock_in_num",
              width: "120px",
            },
            {
              title: "备货入库总价",
              value: "stock_in_unit_price",
              width: "140px",
            },
            {
              title: "新订单发货合计",
              value: "new_order_ship_total",
              width: "150px",
            },
            {
              title: "换货发货合计",
              value: "exchange_sku_ship_total",
              width: "140px",
            },
            {
              title: "正品库存",
              value: "quality_stock",
              width: "150px",
            },
            {
              title: "残品库存",
              value: "scrap_stock",
              width: "140px",
            },
            {
              title: "正品库存值",
              value: "quality_stock_price",
              width: "140px",
            },
            {
              title: "餐品库存值",
              value: "scrap_stock_price",
              width: "150px",
            },
            {
              title: "期初残次品数量",
              value: "scrap_first_stock_num",
              width: "150px",
            },
            {
              title: "期初残次品单价",
              value: "scrap_first_stock_price",
              width: "150px",
            },
            {
              title: "备注",
              value: "remark",
              width: "160px",
            },
          ],
        },
        {
          name: "换货订单号",
          value: "exchange_order_id",
          type: "No",
          Search: false,
          ShowValue: "换货出库选择发货表",
          GetApi: "GetExchangeList",
          placeholder: "请选择入库单",
          tableHeader: [
            {
              title: "订单号",
              value: "order_id",
              width: "150px",
            },
            {
              title: "收货信息",
              value: "address",
              width: "100px",
            },
            {
              title: "SKU",
              value: "sku_id",
              width: "150px",
            },
            {
              title: "产品",
              value: "sku_name",
              width: "180px",
            },
            {
              title: "订单台数",
              value: "sku_num",
              width: "120px",
            },
            {
              title: "下单时间",
              value: "order_time",
              width: "150px",
            },
            {
              title: "发货时间",
              value: "ship_time",
              width: "150px",
            },
            {
              title: "仓库类型",
              value: "ware_house_name",
              width: "140px",
            },
            {
              title: "换货发货数量",
              value: "exchange_order_num",
              width: "150px",
            },
            {
              title: "换货快递",
              value: "exchange_ship_name",
              width: "150px",
            },
            {
              title: "换货快递单号",
              value: "exchange_ship_no",
              width: "120px",
            },
            {
              title: "换货签收时间",
              value: "exchange_ship_time",
              width: "180px",
            },
            {
              title: "库存单价",
              value: "stock_in_unit_price",
              width: "150px",
            },
            {
              title: "换货设备总价",
              value: "exchangeSkuTotalPrice",
              width: "180px",
            },
            {
              title: "换货运费",
              value: "exchange_ship_price",
              width: "105px",
            },
            {
              title: "换货费用合计",
              value: "exchangeTotalPrice",
              width: "150px",
            },
            {
              title: "备注说明",
              value: "remark",
              width: "180px",
            }
          ],
        },
        {
          name: "换货发货数量",
          value: "exchange_order_num",
          type: "input",
          placeholder: "请填写换货发货数量",
        },
      ],
    },
  },
};
